
package com.jike.jkgame.data;

import java.io.Serializable;

import com.jike.jkgame.R;
import com.jike.jkgame.Utilis;

public class MissionReward implements Serializable {
    public int opcode;

    public int energy;

    public int finish;

    public int experience;

    public int money;

    public int[] items;

    public String getFromatedString() {
        if (items == null) {
            return String.format(Utilis.getResString(R.string.reward_fromat), experience,
                    money);
        } else {
            return String.format(Utilis.getResString(R.string.special_reward_fromat),
                    Utilis.intArrayToString(items), experience, money);
        }

    }
}
